const data = [
  {
    icon: 'edit',
    title: '角色权限',
    link: '/vab/permissions',
    color: '#ff9c6e',
  },
    {
    icon: 'star',
    title: '用户管理',
    link: 'personnelManagement/userManagement',
    color: '#ffd666',
  },
   {
    icon: 'book',
    title: '角色管理',
    link: 'personnelManagement/roleManagement',
    color: '#ff85c0',
  },
  {
    icon: 'list',
    title: '菜单管理',
    link: 'personnelManagement/menuManagement',
    color: '#b37feb',
  }, 
  {
    icon: 'wallet',
    title: '支付',
    link: '/mall/pay',
    color: '#69c0ff',
  },
{
    icon: 'chess-bishop',
    title: '商品列表',
    link: '/mall/goodsList',
    color: '#5cdbd3',
  },
 
  {
    icon: 'video',
    title: '视频播放器',
    link: '/vab/player',
    color: '#ffc069',
  },
  
 
  {
    icon: 'coffee',
    title: '休息一下',
    link: '',
    color: '#95de64',
  },
]

const data1 = [
  {
    icon: 'edit',
    title: '角色权限',
    link: '/vab/permissions',
    color: '#ff9c6e',
  },
    {
    icon: 'star',
    title: '用户管理',
    link: 'personnelManagement/userManagement',
    color: '#ffd666',
  },
   {
    icon: 'book',
    title: '角色管理',
    link: 'personnelManagement/roleManagement',
    color: '#ff85c0',
  },
  {
    icon: 'list',
    title: '菜单管理',
    link: 'personnelManagement/menuManagement',
    color: '#b37feb',
  }, 
  

]
module.exports = [
  {
    url: '/tiaozhuan/navigate',
    type: 'post',
    response(config) {
      const { per } = config.body

      if ('admin-accessToken' === per) {
        return { code: 200, msg: 'success', data: data }
      }
      if ('editor-accessToken' === per) {
        return { code: 200, msg: 'success', data: data1 }
      }
    },
  },
]
